<?php

namespace IDock\Insurance\AICS\Request;

use IDock\Insurance\AICS\Request\AllAICSRequest;
use IDock\Insurance\AICS\Response\AccidentInsuranceResponse;
use IDock\Visitor\VehicleModelVisitor;

class AccidentInsuranceRequest extends AllAICSRequest
{
    public $code = 'SubmitpolicyWebService';

    public $envelopeName = 'new:submitpolicy';

    protected $response = AccidentInsuranceResponse::class;

    protected $urlTip = '驾意险保单号查询';

    /**
     * @var  VehicleModelVisitor $visitor
     */
    protected $visitor;

    public $orderCode = '';

    public function generate(): array
    {
        return [
            'condition' => [
                'ordercode' => $this->orderCode
            ],
        ];
    }
}
